package com.boge.controller;

import com.boge.service.ChatBotOllamaService;
import com.boge.service.ChatBotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ChatBotOllamaController {

    @Autowired
    private ChatBotOllamaService service;


    @GetMapping("/ollamaChat")
    public String chat(@RequestParam(value = "message",defaultValue = "介绍下你自己") String message) {
        return service.sendMessage(message);
    }
}
